textview: Use paintables instead of textures, and fix the support
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Feb 2020 15:33:34 +0000 (16:33 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Feb 2020 16:47:56 +0000 (17:47 +0100)
commit828269820183c6f6a8fc553bfd1387d110f3ae02
tree77591b43b95930aa5fb99a7f7611389c90b2c672
parentfcc3c1291970f115315e24a9281ad3ac94388a12
textview: Use paintables instead of textures, and fix the support

This changes gtk_text_buffer_insert_texture() to
gtk_text_buffer_insert_paintable() which is strictly more useful
(as textures are paintables). It also fixes the code to actually
support drawing the paintables (as well as tracking changes
to the paintables.
13 files changed:
demos/gtk-demo/textview.c
gtk/gtktextbtree.c
gtk/gtktextbtree.h
gtk/gtktextbuffer.c
gtk/gtktextbuffer.h
gtk/gtktextchild.c
gtk/gtktextchildprivate.h
gtk/gtktextiter.c
gtk/gtktextiter.h
gtk/gtktextlayout.c
gtk/gtktextsegment.h
gtk/gtktexttypes.h
testsuite/gtk/textbuffer.c